import request from '@/utils/request'

// 查询招募信息列表
export function listZhaomuxinxi(query) {
  return request({
    url: '/system/zhaomuxinxi/list',
    method: 'get',
    params: query
  })
}

// 查询招募信息详细
export function getZhaomuxinxi(id) {
  return request({
    url: '/system/zhaomuxinxi/' + id,
    method: 'get'
  })
}

// 新增招募信息
export function addZhaomuxinxi(data) {
  return request({
    url: '/system/zhaomuxinxi',
    method: 'post',
    data: data
  })
}

// 修改招募信息
export function updateZhaomuxinxi(data) {
  return request({
    url: '/system/zhaomuxinxi',
    method: 'put',
    data: data
  })
}

// 删除招募信息
export function delZhaomuxinxi(id) {
  return request({
    url: '/system/zhaomuxinxi/' + id,
    method: 'delete'
  })
}
